<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>扫描-活动/奖品统计列表</title>
<#include "/view/admin/headList.html"/>
    <script type="text/javascript">

        $(function() {
            //初始化
        });
    </script>
</head>
<body>



<div class="table-class">
    <div class="panel panel-default" style="margin: 10px 10px 10px;">
     <div class="panel-body">
        <form class="bs-example bs-example-form" role="form">


            <div class="input-group">
                <span class="input-group-addon">核销人姓名</span>
                <input type="text" id="remoname" class="form-control" value="${entity.remoname!}" placeholder="请输入核销人姓名">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">核销人手机</span>
                <input type="text" id="remophone" class="form-control" value="${entity.remophone!}" placeholder="请输入核销人手机">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">核销场所</span>
                <input type="text" id="region" class="form-control" value="${entity.region!}" placeholder="请输入核销场所">
            </div>
                <span class="bank-label">&nbsp;</span>


            <div class="input-group">
                <span class="input-group-addon">用户手机</span>
                <input type="text" id="telephone" class="form-control" value="${entity.telephone!}" placeholder="请输入用户手机">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">用户昵称</span>
                <input type="text" id="nickname" class="form-control" value="${entity.nickname!}" placeholder="请输入用户昵称">
            </div>
                <span class="bank-label">&nbsp;</span>




           <!--  <div class="input-group">
                <span class="input-group-addon">活动名称</span>
                <input type="text" id="festName" class="form-control" value="${entity.festName!}" placeholder="请输入活动名称">
            </div> -->
              <div class="input-group">
                <span class="input-group-addon">节日活动</span>
                <select id="festId" name="festId"
                        class="form-control selectpicker"   data-live-search="true"
                >
                    <option value="-1">请选择节日活动</option>
                            <#list vo as o>
                                <option value="${o.festId!}"
                                <#if entity.festId??&&entity.festId == o.festId >
                                    selected="selected"
                                </#if>
                                >${o.festName!}</option>
                            </#list>
                </select>
            </div>
                <span class="bank-label">&nbsp;</span>

           <!--  <div class="input-group">
                <span class="input-group-addon">使用数量</span>
                <input type="text" id="num" class="form-control" value="${entity.num!}" placeholder="请输入使用数量">
            </div>
                <span class="bank-label">&nbsp;</span> -->


                <div class="input-group">
                    <span class="input-group-addon">核销时间>=</span>
                    <input type="text" id="createtimeStart" class="form-control isdatetimepicker" value="<#if (entity.createtimeStart)?? >${entity.createtimeStart?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="createtimeStart" name="createtimeStart" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>
                <div class="input-group">
                    <span class="input-group-addon">核销时间<=</span>
                    <input type="text" id="createtimeEnd" class="form-control isdatetimepicker" value="<#if (entity.createtimeEnd)?? >${entity.createtimeEnd?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="createtimeEnd" name="createtimeEnd" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>


            <div class="input-group" style="text-align: right;">
                <a class="btn btn-info"  href="javascript:query('${base}/czjromotion/list.do')"><span class="glyphicon glyphicon-search"></span> 查找</a>

            </div>
        </form>
     </div>
    </div>


    <table class="table table-hover table-list">
        <thead>
<!--         <tr>
            <td class="table-head-btn">
                <div style="text-align:left;margin-left: 50px;">
                    <a href="${base}/czjromotion/add.do" class="btn btn-primary">新增</a>
                </div>
            </td>
        </tr> -->
        <tr class="table-head">
            <th>序号</th>
                <th class="label-hidden">主键</th>
               <!--  <th>核销类型</th> -->
                <th>核销人姓名</th>
                <th>核销人手机</th>
                <th>核销场所</th>
                <th class="label-hidden">用户id</th>
                <!-- <th>用户手机</th> -->
                <th>用户昵称</th>
                <th class="label-hidden">订单Id</th>
                <th class="label-hidden">订单编号</th>
                <th class="label-hidden">活动id</th>
                <th>活动名称</th>
              <!--   <th>使用数量</th> -->
                  <th>核销总数量</th>
                <!-- <th>活动单价</th> -->
                <th>最后核销时间</th>

             <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
                        <td class="label-hidden">${c.romotionId!}</td>
                          <!--   <td>${c.type!}</td> -->

                            <td>${c.remoname!}</td>

                            <td>${c.remophone!}</td>

                            <td>${c.region!}</td>

                        <td class="label-hidden">${c.userinfoId!}</td>
                            <!-- td>${c.telephone!}</td> -->

                            <td>${c.nickname!}</td>

                        <td class="label-hidden">${c.activityId!}</td>
                        <td class="label-hidden">${c.activityNum!}</td>
                        <td class="label-hidden">${c.festId!}</td>
                            <td>${c.festName!}</td>

                            <!-- <td>${c.num!}</td> -->
							<td>${c.sum!}</td>
                           <!--  <td>${c.price!}</td> -->

                        <td><#if c.createtime?? >${c.createtime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>

              <td>
                    <a href="${base}/czjromotion/listDetail.do?remophone=${c.remophone!}" class="btn btn-primary">详情</a>
            <!--         <a href="${base}/czjromotion/add.do?romotionId=${c.romotionId!}" class="btn btn-primary">修改</a>
                    <a href="javascript:checkDelete('${base}/czjromotion/delete.do?romotionId=${c.romotionId!}')" class="btn btn-primary">删除</a> -->
                </td>
            </tr>








        </#list>
        </tbody>
    </table>


</div>
<script>

    function queryCondition(){
        var href="";
            href+='remoname='+$('#remoname').val();
                href+='&'
            href+='remophone='+$('#remophone').val();
                href+='&'
            href+='region='+$('#region').val();
                href+='&'
            href+='telephone='+$('#telephone').val();
                href+='&'
            href+='nickname='+$('#nickname').val();
                href+='&'
            href+='festId='+$('#festId').val();
                href+='&'
          /*   href+='num='+$('#num').val();
                href+='&' */
            href+='createtimeStart='+$('#createtimeStart').val();
                href+='&'
            href+='createtimeEnd='+$('#createtimeEnd').val();
        return href;
    }

</script>

</body>
</html>
